<?php
namespace app\admin\model;

use think\model;
class Order extends Model{
    public static function getOrderList($where,$post){
        $list = Order::field('u.uname,ecm_order.*,s.order_status')
                ->join('ecm_user u','ecm_order.uid=u.id')
                ->join('ecm_order_status s','ecm_order.status=s.status_id')
                ->where($where)->paginate([
                    'list_rows'=>5,
                    'query'=>$post
            ]);
        return $list;
    }
}